
FROM node:20-bullseye

RUN npm config set registry https://registry.npmmirror.com

RUN sed -i 's/http:\/\/deb.debian.org\/debian/https:\/\/mirrors.aliyun.com\/debian/g' /etc/apt/sources.list


RUN apt-get update && \
    apt-get install -y python3 && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

RUN ln -s /usr/bin/python3 /usr/bin/python

# 设置 pip 使用清华源
RUN mkdir -p /etc/pip && \
    echo "[global]\nindex-url = https://pypi.tuna.tsinghua.edu.cn/simple\ntrusted-host = pypi.tuna.tsinghua.edu.cn\n" > /etc/pip/pip.conf

CMD ["bash"]